export enum DeliveryMethod {
  PLATFORM_DELIVERY = 1, // 平台配送
  MERCHANT_DELIVERY = 2 // 商家自配
}

export function deliveryMethodLabelOf(value: number): string {
  if (value === DeliveryMethod.PLATFORM_DELIVERY) return '平台配送'
  if (value === DeliveryMethod.MERCHANT_DELIVERY) return '商家自配'
  return ''
}
export function deliveryMethodStyleOf(value: number): string {
  if (value === DeliveryMethod.PLATFORM_DELIVERY) return 'border: none;color: black;background-color: #ffd930;'
  if (value === DeliveryMethod.MERCHANT_DELIVERY) return ''
  return ''
}
